<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateShopGoodsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('shop_goods', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('category_id',false,'商品分类');
            $table->integer('account');
            $table->string('name',100);
            $table->string('image',100)->default('null');
            $table->text('detail',255);
            $table->integer('skus',false,'库存数量');
            $table->integer('is_sale',false,'是否上架');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('shop_goods');
    }
}
